package com.example.administrator.runbook.fragments;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.example.administrator.runbook.MainActivity;
import com.example.administrator.runbook.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class IndexFragment extends CommonFragment implements View.OnClickListener {


    public IndexFragment() {
        // Required empty public constructor
    }

    public String getTitle() {
        return "追书";
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_index, container, false);
        Button button = (Button) view.findViewById(R.id.bt_add_index_fragment);
        button.setOnClickListener(this);
        return view;
    }

    @Override
    public void onClick(View v) {

        ((MainActivity) getContext()).skip();
    }
}
